package com.wbao.dianniu.http;

import java.util.HashMap;
import java.util.Map;

public class Command
{
	private String action;
	
	private Map<String,Object> args;
	
	public Command addArgs(String key,Object value){
		if(args==null)
		{
			args=new HashMap<String,Object>();
		}
		args.put(key, value);
		return this;
	}
	
	public Command addAction(String action){
		this.action=action;
		return this;
	}
	
	public String getAction() {
		return action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	public Map<String, Object> getArgs() {
		return args;
	}

	public void setArgs(Map<String, Object> args) {
		this.args = args;
	}
	
}
